<template>
  <div class="ranking">
    <div class="btn-title">
      <title-bar :title-array="title"></title-bar>
    </div>
    <keep-alive>
      <router-view/>
    </keep-alive>
  </div>
</template>

<script type="text/ecmascript-6">
  import titleBar from '../../common/titleBar/titleBar'

  export default {
    data() {
      return {
        title: [
          {
            name: '人气榜',
            parent: 'ranking',
            router: 'popular'
          },
          {
            name: '新游榜',
            parent: 'ranking',
            router: 'newRanking'
          }
        ]
      }
    },
    components: {
      titleBar
    }
  }
</script>

<style lang="stylus" rel="stylesheet/stylus">
  @import "../../../assets/stylus/mixin.styl"
  .ranking
    position relative
    .btn-title
      padding 24px 32px 0 32px
</style>
